Optimal. Leaf size=43 \[ \frac{\tan ^4(c+d x)}{4 d}-\frac{\tan ^2(c+d x)}{2 d}-\frac{\log (\cos (c+d x))}{d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0197208, antiderivative size = 43, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 8, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.25, Rules used = {3473, 3475} \[ \frac{\tan ^4(c+d x)}{4 d}-\frac{\tan ^2(c+d x)}{2 d}-\frac{\log (\cos (c+d x))}{d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3473
Rule 3475
Rubi steps
\begin{align*} \int \tan ^5(c+d x) \, dx &=\frac{\tan ^4(c+d x)}{4 d}-\int \tan ^3(c+d x) \, dx\\ &=-\frac{\tan ^2(c+d x)}{2 d}+\frac{\tan ^4(c+d x)}{4 d}+\int \tan (c+d x) \, dx\\ &=-\frac{\log (\cos (c+d x))}{d}-\frac{\tan ^2(c+d x)}{2 d}+\frac{\tan ^4(c+d x)}{4 d}\\ \end{align*}
Mathematica [A] time = 0.0457365, size = 37, normalized size = 0.86 \[ -\frac{-\tan ^4(c+d x)+2 \tan ^2(c+d x)+4 \log (\cos (c+d x))}{4 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.003, size = 44, normalized size = 1. \begin{align*}{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{4}}{4\,d}}-{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{2}}{2\,d}}+{\frac{\ln \left ( 1+ \left ( \tan \left ( dx+c \right ) \right ) ^{2} \right ) }{2\,d}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.57118, size = 73, normalized size = 1.7 \begin{align*} \frac{\frac{4 \, \sin \left (d x + c\right )^{2} - 3}{\sin \left (d x + c\right )^{4} - 2 \, \sin \left (d x + c\right )^{2} + 1} - 2 \, \log \left (\sin \left (d x + c\right )^{2} - 1\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.753, size = 101, normalized size = 2.35 \begin{align*} \frac{\tan \left (d x + c\right )^{4} - 2 \, \tan \left (d x + c\right )^{2} - 2 \, \log \left (\frac{1}{\tan \left (d x + c\right )^{2} + 1}\right )}{4 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.441391, size = 44, normalized size = 1.02 \begin{align*} \begin{cases} \frac{\log{\left (\tan ^{2}{\left (c + d x \right )} + 1 \right )}}{2 d} + \frac{\tan ^{4}{\left (c + d x \right )}}{4 d} - \frac{\tan ^{2}{\left (c + d x \right )}}{2 d} & \text{for}\: d \neq 0 \\x \tan ^{5}{\left (c \right )} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 2.63925, size = 691, normalized size = 16.07 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]